<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	template="adminTemplate.xhtml">

	<ui:define name="pageIntro">
		<h2>Create Project</h2>
		<p class="lftText">Use this form to create a <span>project</span>.<br />
		<span>Project</span>s the biggest container for your action path
		elements (example to action path elements are; bugs, feature requests,
		change request etc.). An action path must be connected to a project or
		component.</p>
	</ui:define>

	<ui:define name="mainForm">
		<h:form id="crtPrjForm">
			<h:panelGrid columns="2">
				<h:outputLabel for="crtPrjName" value="Name"></h:outputLabel>
				<h:inputText id="crtPrjName" value="#{createProject.project.name}"></h:inputText>

				<h:outputLabel for="crtPrjDescription" value="Description"></h:outputLabel>
				<h:inputText id="crtPrjDescription"
					value="#{createProject.project.description}"></h:inputText>

				<h:outputLabel for="crtPrjProjectUrl" value="Project URL"></h:outputLabel>
				<h:inputText id="crtPrjProjectUrl"
					value="#{createProject.project.projectUrl}"></h:inputText>

				<h:outputLabel for="crtPrjOwner" value="Owner"></h:outputLabel>
				<h:selectOneMenu id="crtPrjOwner"
					value="#{createProject.project.owner}" converter="#{userConverter}">
					<t:selectItems var="user" value="#{listUser.users}"
						id="crtPrjItems" itemLabel="#{user.lastName}, #{user.name}"
						itemValue="#{user}" />
				</h:selectOneMenu>

			</h:panelGrid>
			<h:commandButton value="Save" action="#{createProject.save}"
				id="crtPrjSbt"></h:commandButton>
		</h:form>
	</ui:define>

</ui:composition>
